package com.baosight.risk.api.workflow;

import com.baosight.risk.service.workflow.entity.WorkflowAuth;
import com.baosight.risk.service.workflow.vo.WorkflowAuthVO;

import java.util.List;

public interface WorkflowAuthService {

    /**
     * 查询所有流程授权列表
     *
     * @param filed 搜索条件
     * @return 流程授权列表
     */
    List<WorkflowAuthVO> queryAll(String filed);

    /**
     * 查询所有人工活动节点
     *
     * @return 节点列表
     */
    List<WorkflowAuthVO> selectNodes(String processKey);

    /**
     * 新增流程授权规则
     *
     * @param workflowAuth
     * @return
     */
    Integer insert(WorkflowAuth workflowAuth);

    /**
     * 根据流程定义编码查询授权规则
     *
     * @param processKey
     * @return
     */
    WorkflowAuthVO selectAuthByProcessKey(String processKey, String nodeKey);


}
